pci: imx: Adjust the return value when imx_pcie_addr_valid() fails
authorBin Meng <[email protected]>
Fri, 8 Jan 2016 09:03:20 +0000 (01:03 -0800)
committerTom Rini <[email protected]>
Fri, 8 Jan 2016 15:15:49 +0000 (10:15 -0500)
commit9642b78cdf3404ada759ccb7c7de461bf25597cb
tree0cbda1ea40c3e631b86c42804765b429ca6404ef
parente9cdf3b85e966aabc88517225e9a23ec0cc4ea8a
pci: imx: Adjust the return value when imx_pcie_addr_valid() fails

When trying to access non-existent/unsupported PCI devices in
imx_pcie_read_config(), when imx_pcie_addr_valid() fails it returns
error code and fills in the result with 0xffffffff manually. But it
really should return zero to upper layer codes.

Reported-by: Fabio Estevam <[email protected]>
Signed-off-by: Bin Meng <[email protected]>
Tested-by: Fabio Estevam <[email protected]>
drivers/pci/pcie_imx.c